home *** CD-ROM | disk | FTP | other *** search
/ Comix Games / Comix Games.iso / waldo / waldo.exe / FINAL08.DXR / 00308.ls < prev    next >
Encoding:
Text File  |  1995-10-08  |  487 b   |  15 lines

  1. global gFlagSprite, gUserLevel
  2.  
  3. on mouseDown
  4.   set gFlagSprite to the clickOn - 2
  5.   if legalButton(gFlagSprite + 2) then
  6.     set gUserLevel to 1
  7.     setProp(gFlagSprite, gFlagSprite + 2, "puppet", 1)
  8.     set the castNum of sprite gFlagSprite to the number of cast "Flag3, 0"
  9.     set the castNum of sprite (gFlagSprite + 1) to the number of cast "Flag2, 0"
  10.     set the castNum of sprite (gFlagSprite + 2) to the number of cast "Flag1, 1"
  11.     updateStage()
  12.     checkNewGame()
  13.   end if
  14. end
  15.